C# implementation of StarCode for testing purposes