Changed #14 Collatz Sequence to faster way, with memoization. Also, changed from method to class.