Gosnell resigns at Madison