implemented `multiplyScalar` function for mat4.