implemented enumeration algorithm to find low cost MRQ on op.py, add codegen.py