Added first version of hybrid algorithm