Remove Util.dotProduct(), unused. Add Util.maxArrayValue().
Define alternative calculator for headTop which does not use stack and reach.