LSH version 0.1 with bug