Add c++ factorial implementation

Signed-off-by: Itai Koren <itkoren@gmail.com>