[WIP] Least load scheduler: a simple version

This PR is trying to implement a least load scheduler as mentioned in #471. It is still under development but feel free to make any comment. (This PR depends on #448. I will clean the commit history later.)
how about moving the for loop to a helper function. so you can just call return instead of breaking to a label.