Added exception to src lib
added iterator for array queue