turn std::oldmap into a wrapper around LinearMap