First passage times of two-dimensional correlated processes: Analytical results for the Wiener process and a numerical method for diffusion processes