added some array methods and tests.