Matrix built based on NSMutableArray. Performance-wise we should always use the vDSP in accelerate framework.