A Linear-Time Parameterized Algorithm for Computing the Width of a DAG