added exceptions to ArrayList class

added throwing of ArrayListOutOfBoundsExceptions when the index is
bigger than the ArrayList