add new method structureExists to ArrayUtils class

This new method checks that the given structure exists in the given array