modified queryFreeTimeslots

-added condition to check if task to be added is a floating task
-added condition to check if start time of task is between start and end
time of queried task
-changed method names
-refactored code