add solution to problem 8
add solution to 9
add c++ and haskell solutions to 10