A Space-Time Adaptive Algorithm for Linear Parabolic Problems