-added subset generation
-modified sampling function
-updated similarity measure to use Euclidean distance instead of Hamming distance.
-TODO: test, validate and optimize where needed