Implement jump search algorithm