Cluster-in-a-box statistical protostellar cluster model