Solved problem 005. Solution is non-optimal, takes several seconds to calculate.
Solution to problem 006.
Added naive solution for problem 007.