Fixed some issues with merge sortbykey + corrected many test cases + added rsdixSortByKey prototype