made mat_query a proper implementation file. Removed contains for now and added almostEq to it.