Zaslat záznam e-mailem: Algorithms for Computing Wiener Indices of Acyclic and Unicyclic Graphs