Implemented heap. Start core work.