Perform basic vector calculations