Use & operator for array in resize definition
Merge pull request #174 from shehzan10/devel

Pass input as reference to resize function.