crankshaft rotation - C#