Added problem 50. Kind of slow.