A star implementation in C#