Fixed search function. All jitlib tests passing.