Added test for issue #50, added new allow_linear parameter, fixed issue #51, fixed a typo in min_search_points