Added C++0x support.
Added weights for different factors.
Merge branch 'master' of github.com:jstnhuang/autocp