Added implementation of modified Smith-Waterman Algorithm

Javadoc comment please.