added dispatch function for casting an external pointer to a BigMatrix to its appropriate Armadillo matrix