1. add macro to implement unary function 2. add sub and div function 3. merge code with the latest branch of xiaotong-working