Homework done hastily but with demonstration of the concepts.

I have not compiled or proofread this. It's a little messy, but the fundamental sort algorithm concepts are demonstrated.