made cn2est.c callable from mex and moved to lib/. created cn2ext mex routine.