more Lowest Common Ancestor

Lua, Ruby