Implementation of algorithms that extend IPF to nested structures