Functions of Bounded Variation and Free Discontinuity Problems