added cpp examples for neuralnets