A Stable Graph-Based Representation for Object Recognition through High-Order Matching