This is an C# implementation of my determineFingers code.