Simple array to matrix problemb