optimization arrays
Merge pull request #883 from QiXi/master

optimization arrays