Removed dependence on magma, and implemented cublas version to replace it. GPU activated with passing gpu=TRUE to spacious().