Flow of Bingham plastics in a lid-driven square cavity