Some basics algorithms and datastructures