Added arrayDouble
filled out insertLeft and insertRight