Transitive closure C extension

@mwylde