refactoring distance matrices
generalizing n distance matrices
working on fitting space-time weights for ard and asd