Influence of noise on power-law scaling functions and an algorithm for dimension estimations