add return value for three sorting methods and add comparision in main