Added array equals function