Scientists have powered a miniature computer for six months using only the electrical current generated by algae.