Added a soultion for euler 48 and 49.