Revert "Migrating code to C"

This reverts commit 091d418893391c8a95cb9fe3e097f0f104ffa560.