Reduce fraction