add sorted array vs unsorted array performance problem;