added solution 6.1 for dutch flag array rearrengment