C extension study for Ruby