Difference between judicial and quasi judicial functions