Inserts the given element at the beginning of this list.
Inserts the given element at the beginning of this list.For array lists this method has a time complexity of O(N), with N being the size of the list.
For linked lists this method has a time complexity of O(1).