Efficient Algorithms For Calculating The System Matrix And The Kleene Star Operator For Systems Defined By Directed Acyclic Graphs Over Dioids