Improved from reddit

I proposed my optimisations to your code hope it helps and you will learn something from this ;)
http://www.reddit.com/r/csharp/comments/24xb4t/i_want_to_improve_my_c_programming_can_you_help/
/u/SlowLogicBoy
Merge pull request #1 from SlowLogicBoy/patch-1

Improved from reddit