Solutions for programming questions from Stanford's Algorithms: Design and Analysis online course