What factors led to the rise of the kievan empire? How did it change the direction of europe during the middle ages?