LMNN metadistance