Move an array element to the beginning of the array