Algorithm

###This is a depository used to store the self-written functions.

###KMP.h
Works like "strstr" in <cstring> but using KMP algorithm.

char *strstr_KMP(char *target, char *pattern);

###DichotomyLocate.h
This function is used to locate a particular position by using dichotomy. ```c++ void *DichotomyLocate(void *base, int num, int size, \ bool(*ncomp)(const void *baseLeft, const void *baseRight, \ const void *tempLeft, const void *tempRight, const void *middle), \ bool(*ccomp)(const void *baseLeft, const void *baseRight, \ const void *tempLeft, const void *tempRight)); ```
###sort_mt.h
This function works like "sort" in \.
It creates multiple threads when running. ```c++ void sort_mt(RanIt begin_, RanIt end_, Pred cmp, int thread_power); ```