Added Failure Function

algorithm :: failure function or prefix function (equivalent of
z-algorithm)
runtime   :: O (n)
source    :: "http://e-maxx.ru/algo/prefix_function"
tested    :: yes