add algorithms book code