array algorithms

still need to implement method to grow array and incorporate into
insertElement method