New function to calculate the GMD of a matrix.

Implement a new function in util.misc called 'gmd' that calculates the
Geometric Mean Decomposition of a matrix from its SVD matrices.