Implementing rest of the array methods and adding tests for all of them