High dimensional finite element method for multiscale problems