move reverseWords to gcj