command line Matrix program in C#