Added weighted grey edge color constancy algorithm