n=10; m=1; T=[30, 54, 99, 19, 29, 55, 97, 7, 89, 72];