Add inplementation of naive (closest) solver