Buggy version of pair<int, doube>