function to calculate sequence of test statistics by Martins and Rodrigues (2014). For internal use only
MR(x, trend, serial, tau)