Added implementation of modified Smith-Waterman Algorithm

I have no idea what these variables mean. What do these variables mean?