using the numpy.array_equal() for comparing arrays