solved 239, added derangements, big factorial/choose to lib