Add shortest repetions solution