SHAPER: a self-healing algorithm producing multi-hop bluetooth scatternets