Commiting cpp code for Taylor series and Kth factorial.