updated insert method to account for more list lengths
finished insert method, passing all specs