removed SLinsert from createKeyVal, wrote mapsort