added indicator for insertion sort