fixed bug in manhattan()
last try for 30th sep