Some algorithm implementation backup