Added some new methods to the Array class