Work on c++ texture code.

Also add RcppArmadillo dep.
Add @useDynLib directive.
Finalize calc_texture C++ code.