change size function to N variable, use (k-1)%N to cut down duplicate step when k-1 is bigger than N
Merge branch 'master' of github.com:hanks/uva