change matrix form array to hash