Changed Code to LINQ standard (test)

changed estimote detection code to use LINQ