Computational Complexity as a Source of Thermodynamic Irreversibility