Split teams in header and implementation

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
Add a simple distance table implementation

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
Add unittests for the distance table

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>