made classes for gamma correction and fast random numbers