added codeval shortest repetition