Adding resize function to DSArray.