add array interface to RGB
move cmath-RGB functions to separate file to prepare generalisation of cmath-functions
generify the bodies of all cmath-functions
simplify definition of the apply-function