Javascript Number shift(bit)
Number.prototype.shift = function (bit) { return parseInt(this * (2 << bit)); };