first version of ex1 - brute-force, slow, no pyramid, just graychannel - but working :-)