public void put(K key, V value) {

		int internalKey = generateKey(key);

		if (array[internalKey] == null) {
			Bag<K, V> bag = new Bag<>(key, value, internalKey);
			array[internalKey] = bag;
		} else {
			int count = 0;
			while (array[internalKey] != null && count < size) {
				internalKey++;
				count++;
				if (internalKey == size) {
					internalKey = 0;
				}
			}
			if (count == size) {
				//throw new NoSuchMethodError("Resizing of the hashmap");
			} else {
				Bag<K, V> bag = new Bag<K, V>(key, value, internalKey);
				array[internalKey] = bag;
			}
		}
	}