Made hashmap use load factor; fixed compiler errors