Development of a multi-mode self-adaptive algorithm to create an efficient wireless network on a university campus