An attempt to solve and implement basic algorithms