Decrease all of arrays by 1, optimization because of Time limit Exeeded - C#