Created a list of ids and of availability, stored in a hash table.
This must be done in 2 passes so it supposes there is a bijection between the
ids and the availability.