Inflation and Output Dynamics in a Model with Labor Market Search and Capital Accumulation