Text this: Bernoulli collocation method for solving linear multi-dimensional diffusion and wave equations with Dirichlet boundary conditions