added getMagnitude, setMagnitude, normalize and isZero methods to Point