http://scholar.sjp.ac.lk/sites/default/files/lanel/files/lecturenote_2.pdfClass: MAT 331 1.0 Algorithms and Complexity