Insert an element into a list in a way that the list doesn't need to be sorted