How to make this Faster? - C#