Stabmeqt

New version of the algorithm