Adds modulus function to vector.