fixed sort_Xcols_Ycorresp, wrote and ran test function for it