R library that creates compiled functions from simple tensor expressions