Added tensor ratio function and its call in AllTensors.m