Basic algorithms study