cleaned up the code a bit, added comments, added acknowledgements for using the reference solution from ps2
cleaned up the code a bit, added comments, added acknowledgements for using the reference solution from ps2

hsm5xw/cs4414-ps3