Ruby/0.2.0

all ruby code convert to c code.
it to be fast.

and change specification of `str`. length unit is from string length to byte.