updated the pdf (wip) with everything up through calculating similarities in O(1) time
completed the details of how to update the higher order matrices in non-exponential time