The Power and Howard Algorithm in the (Max,+) Semiring