A linear time algorithm for the maximum capacity path problem