Completed dotProduct() and crossProduct() methods for Vector class.