Add C-based demonstrator code for calculateTrainPosition

Signed-off-by: UweSteinkeFromSiemens <uwe.steinke@siemens.com>