Bachelor Thesis: Analysis and optimization of segment based video matchin