Tuning the average path length of complex networks and its influence to the emergent dynamics of the majority-rule model