A Highly Modular Architecture for Canned Pattern Selection Problem