Changed CUDA indexing

* Each thread is now able to handle more than one element, if the matrix
  dimension exceeds the number of threads available.
* Removed tests and tools from the "all" target.