Updating for distance calculator

- Properly handle dictionary transformation
- Handle multiple reads in SingleReadBucket