Forked from http://alumni.cs.ucr.edu/~rakthant/FastShapelet/