The algebra of Thom cochains and flow conversion