Temporal Context Graph - Interval-based temporal reasoning model capable of learning tasks with cyclical events