added a contains method checking if an array is contained in an array of arrays