add solutions for two problems and an algorithm