Added a class for GPU matrices

Added an SGMatrix-like class for GPU matrices. It supports conversion to and from SGMatrix and Eigen3 matrices, wrapping a matrix around pre-allocated memery, and serialization.

I've also wanted to add methods to SGMatrix that convert to and from Eigen3 matrices, however it fails to compile on travis for some reason.

@lisitsyn, @lambday, @karlnapf Please take a look.
yeah, why not add another datatype like SGMatrix, though its painful to implement that.
in fact, i think the overhead of sgobject is neglect able compared to sizes that matrices usually have, so fine from my side