Added undirected version of Pregel.