I have a file with rows keys values
-----+---------------------------
1 1 2 0.39785 0.39785 0.2043 36
1 1 3 0.409604 0.409604 0.180792 24
1 1 4 0.407281 0.407281 0.185438 24
1 1 5 0.404958 0.404958 0.190084 24
1 1 6 0.403399 0.403399 0.193203 24
...
23 34 36 0.414457 0.354921 0.230622 576
..
-the first 3 numbers are keys and represent a matchup, they are unique, and they are ascending
-the float values are linked to the keys. eg: first row's 4th element (0.39785) belongs to key 1, 6th element (0.2043) to 2.
I read it line by line and split it by " " (space). How should I store it (which collection/structure).
Lets say I want to lookup "2 1 1". As I wrote keys are ascending, there won't be an entry like "2 1 1", only "1 1 2", so first I have to sort it, but I want to get the values in the lookup's order (0.2043 0.39785 0.39785).
1, 1, 2 == 1, 2, 1 == 2, 1, 1) requirements.