https://www.cse.msu.edu/~alexliu/publications/HammingQuery/HammingQuery_ICDE2011.pdf