Rewrote BK Tree

minor refactor imports -> inputs