ADD class for efficient saving distance tables

Saves integers in a bitarray. About 8x more efficient than using a list
of integers.
Added get and set methods.