doc(readme): add basic algorithm