first version, tuned to produce qmark of about 500 on a 2.2Mhz Xeon