Randomize arrays to act as sets.
Code replication to reduce branching.
Merge branch 'master' of github.com:ayharano/proposed-dual-linear-mm-transform

Conflicts:
	img.cc