Add quaternions.

Fix #24.