Fix levenshtein with costs.  The previous code multiplied by the cost in only 3 of the 7 relevant locations.
Fix levenshtein with costs.  The previous code multiplied by the cost in only
3 of the 7 relevant locations.

Marcin Mank, slightly adjusted by me.

adam8157/gpdb,tpostgres-projects/tPostgres,kmjungersen/PostgresXL,zeroae/postgres-xl,xinzweb/gpdb,yazun/postgres-xl,lisakowen/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,arcivanov/postgres-xl,oberstet/postgres-xl,kmjungersen/PostgresXL,greenplum-db/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,techdragon/Postgres-XL,adam8157/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,snaga/postgres-xl,50wu/gpdb,greenplum-db/gpdb,xinzweb/gpdb,adam8157/gpdb,arcivanov/postgres-xl,yazun/postgres-xl,Postgres-XL/Postgres-XL,techdragon/Postgres-XL,yazun/postgres-xl,oberstet/postgres-xl,ovr/postgres-xl,jmcatamney/gpdb,xinzweb/gpdb,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,jmcatamney/gpdb,adam8157/gpdb,lisakowen/gpdb,greenplum-db/gpdb,snaga/postgres-xl,pavanvd/postgres-xl,tpostgres-projects/tPostgres,postmind-net/postgres-xl,xinzweb/gpdb,adam8157/gpdb,ashwinstar/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,postmind-net/postgres-xl,oberstet/postgres-xl,arcivanov/postgres-xl,lisakowen/gpdb,50wu/gpdb,50wu/gpdb,yazun/postgres-xl,ashwinstar/gpdb,lisakowen/gpdb,adam8157/gpdb,tpostgres-projects/tPostgres,kmjungersen/PostgresXL,snaga/postgres-xl,oberstet/postgres-xl,postmind-net/postgres-xl,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,xinzweb/gpdb,zeroae/postgres-xl,techdragon/Postgres-XL,yazun/postgres-xl,ovr/postgres-xl,ashwinstar/gpdb,xinzweb/gpdb,jmcatamney/gpdb,50wu/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,snaga/postgres-xl,arcivanov/postgres-xl,lisakowen/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,zeroae/postgres-xl,tpostgres-projects/tPostgres,50wu/gpdb,ovr/postgres-xl,ashwinstar/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,ovr/postgres-xl,postmind-net/postgres-xl,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,lisakowen/gpdb,lisakowen/gpdb,oberstet/postgres-xl,arcivanov/postgres-xl,lisakowen/gpdb,xinzweb/gpdb,greenplum-db/gpdb,postmind-net/postgres-xl,jmcatamney/gpdb,kmjungersen/PostgresXL,snaga/postgres-xl,xinzweb/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,tpostgres-projects/tPostgres,50wu/gpdb,50wu/gpdb,50wu/gpdb,arcivanov/postgres-xl