change gcd function
add rvmrc
Merge from master branch