Add implementation of inexact search
Test