Changed Algorithm for CollatzSequence