Implements Neville's algorithm.