Karnataka: BS Yediyurappa wins floor test, Speaker Ramesh Kumar resign