Back Testing Strategies in R, Excel and Matlab