Matching, bargaining and wage setting in an evolutionary model of labor market and output dynamics