pub fn is_matrix(arr: &mut Array) -> bool
Tests whether the input is a matrix
let x = ones([3, 5]); assert_eq(is_matrix(x), true)
let x = ones([5, 5, 5]); assert_eq(is_matrix(x), false)