Added iterative Gray with bit operations (short version)