Completed Algorithms code: 2013/10/11