JavaScript port of FLANN - Fast Library for Approximate Nearest Neighbors