An efficient transportation algorithm for automatic chromosome karyotyping