problem 12 in haskell, triangle numbers, number of divisors