fixed bug of padToSize, switched input arguments

2 jobs for master in 1 minute and 38 seconds (queued for 2 seconds)