11 bpc testcode v2 - Seems to work somewhat ok.

-> Baseline for real implementation.