Added possible code fragments to M1

The packages in R are compiled in C, so any time that you can use pre-compiled function calls they will likely provide a nice performance boost.