Replaced array_push function reference with a faster ordinary element insertion method
Merge pull request #2113 from and-ers/develop

Easy optimization