Add task finding the array's median