Implementing some algorithms inspired from Stanford's course: Algorithms: Design and Analysis