A little more performance in Map redistributeElevations

The sqrt method should be quite expensive, this way we can save n-1 of them. The length won't change so we can save use the lookups (like in Javascript or AS as mentioned here #13 http://active.tutsplus.com/tutorials/actionscript/actionscript-3-0-optimization-a-practical-example/)