Added common directory with some data structures from previous java implementation