If you know more or less what is going on in the algorithm you have implemented below, document the steps with comments.