An algorithms test