more array algorithms

start next with insertElement and then growArray method