Adding ColourSpace class; making the 3D-searching algorithm
significnatly faster; making things less buggy... Lots of improvements.