shape: eliminate duplicated code
shape: provide the objListByShape() helper
adt_op_match: basic implementation of matchAnchorHeapCore()