Adlene Guedioura marked his return to Molineux with the winning goal as Nottingham Forest beat his old club Wolves 2-1.