I'm putting together code for sorting algorithms. It's meant to demonstrate the fastest method between different types of data sets. So far it compiles but I continue to receive the following error
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.elementData(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at SortTestPractice.insertionSorty(SortTestPractice.java:152)
    at SortTestPractice.testSpeed(SortTestPractice.java:71)
    at SortTestPractice.main(SortTestPractice.java:17
What does this error mean and what can I do to rectify this?
 
     
    