Fix tailrec to return accumulator instead of an empty seq