Finished Algorithm and Commented Code for Part 3

Signed-off-by: fisherjk <fisherjk@.uwec.edu>