change the way to store feature: store in matrix

change the way to store feature