Optimized conversion between RGB and HSV (SSE/SSE2)