Remove the need for a `--cfg dimX` flag + switch to cargo completely.

Dimension-specific algorithms can be specified using the `#[dimX]` or `#[not_dimX]` syntax
extensions.

For example to compile something for 3d only, use `#[dim3]`.
For example to compile something for each dimension but 3d, use `#[not_dim3]`.