added solution for morse problem
added simple macro for handling problem input