Add Bk tree utility