use new LU implementation for inverse
Merge pull request #64 from prasant94/improve_inverse

use new LU implementation for inverse
change asDoubleArray to toDoubleArray in Linear