Title: A Treatise on Perfect Railway Signaling