Total Variation and Euler's Elastica for Supervised Learning