moophis: add runtime complexity analysis for problem d