Exact simulation of Gaussian boson sampling in polynomial space and exponential time