implementation of algos learnt in algorithms 1 course, coursera