changing fortran routines to cblas interface

Apple doesn't allow apps to use fortran routines directly. Got non-public calls error trying to submit app to app store.
Changing to cblas_* functions from Accelerate.framework solves the problem.