add nqueen and factorial

Signed-off-by: Lindell Xu <lxu@vetronicsltd.com.cn>