Algorithms for Computing Wiener Indices of Acyclic and Unicyclic Graphs. (3rd May 2021)