find_matrix_divisors function

Find divisors for a matrix with alternate scaling