Implement some trival algorithm