Added 2 functions

same_shape in Block and calculate_commands in Bitmap