Chu-Liu-Edmonds algorithm for android devices