map<pair<int, int>, double>

For @gidden, fixes #240