Quaternions and Ideal Flows