The zero pivot phenomenon in transportation and assignment problems and its computational implications