Fast and Accurate Fingerprint Indexing based on Ridge Orientation and Frequency