Large scale fingerprint recognition accelerated in hardware