algorithm love