Mathematical Model of Building Behavior of Apis mellifera