Some algorithms for practise . WIP