Dynamic programming based frame shift detection and correction tool with nearest neighbor classification.