added findmax in smith waterman