Replace interpolation search with generic implementnation