added basic algorithm for solving the problem
created outline for source code based on basic algorithm within my notes