Cornwall takes basketball double over York Castle