Ruby solution to problem 12, way too slow
Added C solution for problem 12