Implements interpolation

Added tests and functionality for interpolation, and a function to find
the distance between two panels.