Implemented simple pattern miner framework.