Add binary search for version index
Remove useless whitespaces