Tight-binding molecular dynamics with linear system-size scaling