A global collocation method for two-dimensional rectangular domains