added getMagnitude() method to Vector() objects