Fred's profit rises in Q2