SMS: Structural geology algorithms: vectors and tensors/