BACKWARD1, C-GEN, C-GENS implemented

Passes given test cases but not extensively tested