change order of arguments in compute_vorticity to put return array 1st.