Removed duplicate code

Closes https://github.com/PistonDevelopers/vecmath/issues/197
Merge pull request #198 from bvssvni/master

Removed duplicate code