Nonperturbative Treatment of non-Markovian Dynamics of Open Quantum Systems