fixed neighborhood initialization algorithm, and am returning correct neighborhood in RuleSystem::update