implemented Map and renamed packages

There are two packages, algorithms and datastructures.