get the tail of an array