Basic implementation of linear algebra routines for CUDA