Implement Pipeline. (#114)
Remove the old implementation of Pipeline.