2013/07/15 simulate mvvm
quick sort & binary search in js