more algorithm improvements[2]
Merge remote-tracking branch 'origin/master'