What affects the speed of my code? - C#