Seeded Binary Segmentation: A general methodology for fast and optimal changepoint detection