IBCF, hand-crafted algo