Add sparse2adjacencylist

Perhaps the name is too long, feel free to change it.