add: top algorithm implementation
opt: remove 1st arg of top function
Merge remote-tracking branch 'github/master'