add some methods iin ArrayTools.java