Added sparse matrix processing to hashes
Made distances capable of handling sparse vectors
Added support for sparse vectors to redis storage