added ascending matrix