add rtres
Merge pull request #30 from chuanweizhang2013/master

add rtres