create subprograms to insert and delete array elements;