add debug code to count mul256/red512/add/sub