relaxed constraints HeapFunctions.sort and HeapFunctions.sortWith
Merge pull request #426 from xuwei-k/request/heap-functions

relaxed constraints HeapFunctions.sort and HeapFunctions.sortWith