newell's algorithm added. files reorganization.