Algebraic dynamic multilevel method for fractured geothermal reservoir simulation