Some small corrections
Don't call sizeDynArr so many times
Cleanup
temp