Spin dynamics in a double quantum dot: Exact diagonalization study