Support sharing comparator with memory store.
Test custom comparator with HFile.
Merge pull request #1026 from tweise/hds

Support sharing comparator with memory store.