Simple BK trees library in scala