Scala version of FlashFill for Excel by Gulwani et Al. See http://rise4fun.com/QuickCode/dates