Change scalar inputs to references
Add VectorOperations trait
Implement VectorOperations for vectors and slices