added the rest of the array function such as count, next, prev, sorting functions etc...