Use hash instead of SLIST for versions check.

Use hash table instead of SLIST for storing INDEX file entries whilst
performing version check agains ports tree INDEX file. That speed up
version compare for each installed package.