ADD: function to calculate x and y from d

This is needed for issue #4
ADD: Loading x and y coordinates for all villages

Needed for issue #4
ADD: determine merchant speed according to tribe
ADD: all the merchant repeats