Function for calculating pixel size

Given a zoom level and latitude, calculate the size of a pixel tile.