Initial impelementation
Implement retrieve function
Take out makeCase function
Fix some implementation problems with retrieve
newCase now expects a case struct
Extract calculateDistance function out
Incomplete reuse function