Implement Dutch national flag sorting to sort three colors.