Faster implementation of Tail