Hardware and algorithm study for a fingerprint verification system