Supervised Learning Approach to Approximate Nearest Neighbor Search