Hierarchical polynomials and vector elements for finite methods