Self Pre-training with Masked Autoencoders for Medical Image Classification and Segmentation