getting ready for BK tree