max distance estimation from points matrix