Update SuperArray.java

Updated for minor bug fixes and also it throws exceptions now.