Fixed using pointers in Struct and small Fix for Sort