implement the HSV to RGB converter