Analysis And Optimization Of Brayton And Rankine Cycles