Text this: Algorithmic Methods for Railway Optimization