insert items to the arraylist using insert and insertrange method