Implement cross-correlation (untested) and channel scales.

Sorry, too lazy to seperate those two features into two commits. ;)