Algorithm implementations and programming problems