Added Function to compare Datastructure

This test is very slow!!