matchsticks problem - initial version