Improving the key mapping speed

With many keys, mapping can take a long time if the successful key is at the end of the keylist.

This patch uses an arraylist to put successful keys at the start of the list, which then have a high probability of being correct for the following sectors.
The hashmap is still used to weed out unique keys.


BR,
 Stefan