Fixed syntax error in BallTree