Text this: Optimal Stroke Path for Reciprocating Heat Engines