framework: occupy

@fengjingchao This works. need some refactoring. 
@xiaoyunwu so it is a O(n^2) (1+2+3...+n )approach. We can improve it by adding hints(if a framework occupies a task, it will create hints for other slow frameworks) when necessary.