added wrapper minPathNumberOnBed.R