Implementations of LCA and RMQ data structures from "The LCA Problem Revisited"