@SuppressWarnings("unchecked")
	public HashTable(Collection<KeyValue> items)
	{
		numOfItems = items.size();
		tableSize = findTableSize(numOfItems*2+1);
		table = (ArrayList<KeyValue>[]) Array.newInstance(ArrayList.class, tableSize);
		for(KeyValue p : items)
		{
			if(add(p)){collisions++;};
		}
	}