Moved insertion sort to its own class