add ldst_matrix.py back in, needs some work though