isZero implemented.
Division by zero fix in getWeightedAverage.