revise KSW algorithm; create simulation file for batching all examples