void InsertSort(int data[], int len)
{
int temp = 0;
int subIndex = 0;
for (int index=0; index<len-1; index++)
{
temp = data[index+1];
subIndex = index;
while(subIndex>-1 && temp < data[subIndex])
{
data[subIndex+1] = data[subIndex];
subIndex--;
}
data[subIndex+1] = temp;
}
}