Convert Numpy Array To Matrix