New initMetric interface to make clear its goal and differentiate it from setParameters. Add gravity to k2 context. Fix algorithms names in integration tests