private int locate(int key) {
            int collisionNum = 0;

    		// And with the largest positive integer
    		int currentPos = (key & 0x7FFFFFFF) % array.length;

            while( array[ currentPos ] != null &&
                    array[ currentPos ].key != key )
            {
                currentPos += 2 * ++collisionNum - 1;  // Compute ith probe
                if( currentPos >= array.length )       // Implement the mod
                  currentPos -= array.length;
            }
            return currentPos;
        }
Method that performs quadratic probing resolution.
@param key the item to search for.
@return the index of the item.
subs/gif-revert/src/main/java/com/engineer/gif/revert/lib/AnimatedGIFWriter.java