Parameterised gravity vector. Refactored & added some utility methods to Matrix and Vector classes.