replace valueForKey: with objectForKey:
replace Matrix Computations with Accelerate and LAPACK code