also, calling NN.index(i) is computationally expensive.
```python
for r, refBoundary in enumerate(refBoundaries):
    for h, hypBoundary in enumerate(hypBoundaries):
        delta[r, h] = abs(refBoundary - hypBoundary)
```