Updated to generic sorts.

Started updating sorting algorithms to be of generic type extends
Comparable.