added serial implementation of cvtcolor. try to make it faster