Small refactor to give helper methods for insertion sort and median sort more clear/consistent names.