Computational Studies Of Thermal And Quantum Phase Transitions Approached Through Non-Equilibrium Quenching