Some algorithm commonly used by me