getsortedscoremap added, as well as test