Implement BK-forest query
Change calculateHammingDistance signature
Add test case for BK-forest