Added tail with dynamic array