Optimal Source-sink Matching in Carbon Capture and Storage Systems with Time and Capacity Constraints