add ability to disable sparse representation and set sort threshold based on the sparse set threshold
Merge pull request #23 from seancarr/master

add ability to disable sparse representation