Added new algorithm