Added implementation of modified Smith-Waterman Algorithm

won't these always be equal to table.length and table[i].length?