wrote queue array list implementation ..