GRID.PY: Made build_B match what the Julia now does (uses poly_inds instead of smol_inds)
Added functions to transform points from general domain to [-1, 1]^d and also to move them back from [-1, 1]^d to original domain.