Added problem 2 method

Added problem2() method, added that 2 had been solved, added slow problem40() to trash class.
I mainly did this because I'm testing out using GitHub through Eclipse.
I think it's all working perfectly!!!