test factorial speed in matlab