added method to return a slice of a matrix

I had to get a specific vector from a matrix and check if this vector lies on a hyperplane. So i wrote a get_slice function which returns me a slice, which can then be used for example in mul_expr.

Maybe this will be useful for other users, too.