cover trees and lsh working with sparse and dense