Added comments and Complexity for sorting

Added comments to the various algorithms. Added complexity requirements
for time and space for the sorting algortihms.