ludecomposition.cpp
completed all three versions