Changed selectedIndex to selectedIndexPath, make menuViewController support multiple section

In order to support multiple section in menu view controller, I have changed the selectedIndex to selectedIndexPath, and the relative logic have been changed and tested.

The original codes are commented for reference.