added a normalize function
added zSum, zBounded, zNormalizeArray