Tools for Stata's Mata language