Add Matrix.java slice() method