Random colour map used and using bitwise operator functions to run
faster