Implementation of several algorithms for color constancy