delete un-used function
add lock to renew operation
add MinSize and MaxSize bound checking
Merge pull request #4 from ccding/master

fix possible concurrency issues