Added HashInventory as generic implementation of Inventory. Included
tests.