Coarse-Grained Architecture for Fingerprint Matching