Added more equations in algorithm part