MT algo implemented