Reliable networks for Boolean functions with small complexity