"Basic Beadsort implementation"