initial add of sortedArray demo program