Complete vectorisation of modes.m

This enabled a removed for loop from common.m and required adjustment of test_modes_timoshenko.m to test better