Javascript Array norm()
norm()
Array.prototype.norm = function() { return Math.sqrt(this[0]*this[0] + this[1]*this[1]) }