Extracting vector and quaternion methods to util file