Changed vector normalization functions to be more logical