Brushing up on my c++ by implementing the various sorting methods.