solved the std::map - not member issue, the norm() error is still there