tests passing for updated insert method, refactored some methods on array