Linq my own implementation