Implement LEAD, LAG, and NTILE

Here's some refactoring windowed aggregates and the implementation of LEAD/LAG/NTILE