added some tests, improved the code by fixing some compiler errors for older versions. Edit distance is tested on an online judge