Added support for metric transformation.
Added function for computing whitening transform.
Set minimum distance to float epsilon.